package com.thinkgem.jeesite.modules.fantasy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.fantasy.dao.NPCPositionDao;
import com.thinkgem.jeesite.modules.fantasy.entity.NPCPosition;
@Service
public class NPCPositionService extends CrudService<NPCPositionDao, NPCPosition> {
	@Autowired
	public NPCPositionDao npcPositionDao;
	
	public NPCPosition getNPCByMapId(String mapId) {
		NPCPosition npcPosition = npcPositionDao.getNPCByMapId(mapId);
		return npcPosition;
	}

	public List<NPCPosition> initNPCs() {
		List<NPCPosition> npcList = npcPositionDao.initNPCs();
		return npcList;
	}

	public List<NPCPosition> queryNPCByName(String npcname) {
		List<NPCPosition> npcList = npcPositionDao.queryNPCByName(npcname);
		return npcList;
	}

}
